package main

import "fmt"

func main() {

	var a int64 = 20

	if a > 110 {

		fmt.Println("a > 0")
	} else if a > 101 {

		fmt.Println("a > 10")
	} else {
		fmt.Println("a else ......")
	}

	fmt.Printf("a is %d \n", a)

	var name string = "小王吧"

	if name == "小王吧1" {

		fmt.Printf("name is %s \n", name)

	} else {
		fmt.Println("name is %s \n")
	}

	//初始化

	if aaa := test(); aaa == 1 {

		fmt.Println("a == 0")
	} else if aaa == 2 {

		fmt.Println("a == 2")
	}

}

func test() int {

	return 2
}
